<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //模板字符串，``
        let str1 = "<a><a>"; //不能换行，想换行必须+拼接
        let str2 = "<a>" + 
            "<a>";    
        let str3 = `<a> 
            <a>` //模板字符串可以换行
        console.log(str1, str2, str3, typeof str1, typeof str3);

        //模板字符串可以直接格式化变量
        let str4 = '张三';
        let str5 = `人人心中都有一个${str4}`        
        console.log(str5);
    </script>
</body>
</html>